package one.stand.zuul;

import com.jmp.autocofiguration.CacheManagerConfig;
import com.jmp.autocofiguration.JmpProperties;
import com.jmp.autocofiguration.TaskExecutorConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Import;

/**
 * @author Administrator
 */
//@EnableHystrix
@EnableEurekaClient
@EnableZuulProxy
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@Import({
        TaskExecutorConfig.class,
        CacheManagerConfig.class
})
@EnableConfigurationProperties(JmpProperties.class)
public class OneZuulApplication {

    public static void main(String[] args) {
        SpringApplication.run(OneZuulApplication.class, args);
    }

}
